import Layout from '@neu/biz-core/layout'
import ParentView from '@neu/biz-core/components/ParentView'
export default [
  {
    path: '/workbench',
    name: 'workbench',
    component: Layout,
    redirect: '/workbenchMain',
    children: [
      {
        path: '/workbenchMain',
        name: 'workbenchMain',
        meta: { title: '工作台', icon: 'workbench', affix: true, code: 'dcom_menu_workbench' },
        component: () => import('@neu/dcom-ui/views/workbench')
      }
    ]
  },
  {
    path: '/planCoordination',
    name: 'planCoordination',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '计划协调',
      icon: 'plan',
      module: 'dcom',
      code: 'dcom_menu_planCoordination_parent'
    },
    component: Layout,
    children: [
      {
        path: 'incidentMe',
        name: 'dcom_myIncidentWorkOrder',
        meta: {
          title: '事件管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'incident',
          workOrderRequest: 'me',
          code: 'dcom_menu_planCoordination_incidentMe'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'problemMe',
        name: 'dcom_myProblemWorkOrder',
        meta: {
          title: '问题管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'problem',
          workOrderRequest: 'me',
          code: 'dcom_menu_planCoordination_problemMe'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'changeMe',
        name: 'dcom_myChangeWorkOrder',
        meta: {
          title: '变更管理',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'change',
          workOrderRequest: 'me',
          code: 'dcom_menu_planCoordination_changeMe'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'workOrderManagement',
        name: 'dcam_workOrderManagement',
        meta: {
          title: '工单管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_planCoordination_workOrderManagement_parent'
        },
        component: ParentView,
        redirect: 'noRedirect',
        alwaysShow: true,
        children: [
          {
            path: 'myWorkOrder',
            name: 'dcom_myWorkOrder',
            meta: {
              title: '我的工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'me',
              code: 'dcom_menu_planCoordination_workOrderManagement_myWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          },
          {
            path: 'todoWorkOrder',
            name: 'dcom_todoWorkOrder',
            meta: {
              title: '待办工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'todo',
              code: 'dcom_menu_planCoordination_workOrderManagement_todoWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          },
          {
            path: 'doneWorkOrder',
            name: 'dcom_doneWorkOrder',
            meta: {
              title: '已办工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'done',
              code: 'dcom_menu_planCoordination_workOrderManagement_doneWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          }
        ]
      }
    ]
  },
  {
    path: '/inspection',
    name: 'inspection',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '例行巡检',
      icon: 'inspection',
      module: 'dcom',
      code: 'dcom_menu_inspection_parent'
    },
    component: Layout,
    children: [
      {
        path: 'inspectionRule',
        name: 'dcom_inspectionRule',
        meta: {
          title: '巡检计划',
          icon: 'right-arrow',
          code: 'dcom_menu_inspection_inspectionRule'
        },
        component: () => import('@neu/dcom-ui/views/inspection/inspectionRule/index')
      },
      {
        path: 'inspectionTaskStatistics',
        name: 'dcom_inspectionTaskStatistics',
        meta: {
          title: '巡检统计',
          icon: 'right-arrow',
          code: 'dcom_menu_inspection_inspectionTaskStatistics'
        },
        component: () => import('@neu/dcom-ui/views/inspection/inspectionTaskStatistics/index')
      },
      {
        path: 'inspectionTask',
        name: 'dcom_inspectionTask',
        meta: {
          title: '巡检任务',
          icon: 'right-arrow',
          code: 'dcom_menu_inspection_inspectionTask'
        },
        component: () => import('@neu/dcom-ui/views/inspection/inspectionTask/index')
      }
    ]
  },
  {
    path: '/maintainManager',
    name: 'maintainManager',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '运行维护',
      icon: 'maintain',
      module: 'dcom',
      code: 'dcom_menu_maintainManager_parent'
    },
    component: Layout,
    children: [
      {
        path: 'maintainRule',
        name: 'dcom_maintainRule',
        meta: {
          title: '维护规则',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_maintainRule'
        },
        component: () => import('@neu/dcom-ui/views/maintainRule/index')
      },
      {
        path: 'maintainPlan',
        name: 'dcom_maintainPlan',
        meta: {
          title: '维护计划',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_maintainPlan'
        },
        component: () => import('@neu/dcom-ui/views/maintainPlan/index')
      },
      {
        path: 'maintainTaskQuery',
        name: 'dcom_maintainTaskQuery',
        meta: {
          title: '维护统计',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_maintainTaskQuery'
        },
        component: () => import('@neu/dcom-ui/views/maintainTaskQuery/index')
      },
      {
        path: 'tmpMaintainTask',
        name: 'dcom_tmpMaintainTask',
        meta: {
          title: '临时维护',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_tmpMaintainTask'
        },
        component: () => import('@neu/dcom-ui/views/tmpMaintainTask/index')
      },
      {
        path: 'stopServiceNotice',
        name: 'dcom_stopServiceNotice',
        meta: {
          title: '维护通知',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_stopServiceNotice'
        },
        component: () => import('@neu/dcom-ui/views/stopServiceNotice/index')
      },
      {
        path: 'maintainTask',
        name: 'dcom_maintainTask',
        meta: {
          title: '维护任务',
          icon: 'right-arrow',
          code: 'dcom_menu_maintainManager_maintainTask'
        },
        component: () => import('@neu/dcom-ui/views/maintainTask/index')
      }
    ]
  },
  {
    path: '/knowledge',
    name: 'knowledge',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '知识库',
      icon: 'inspect',
      module: 'dcom',
      code: 'dcom_menu_knowledge_parent'
    },
    component: Layout,
    children: [
      {
        path: 'knowledgeBaseConfiguration',
        name: 'dcom_knowledgeBaseConfiguration',
        meta: {
          title: '类型配置',
          icon: 'right-arrow',
          code: 'dcom_menu_knowledge_knowledgeBaseConfiguration'
        },
        component: () => import('@neu/dcom-ui/views/knowledge/knowledgeBaseConfiguration/index')
      },
      {
        path: 'knowledgeView',
        name: 'dcom_knowledgeView',
        meta: {
          title: '知识维护',
          icon: 'right-arrow',
          code: 'dcom_menu_knowledge_knowledgeView'
        },
        component: () => import('@neu/dcom-ui/views/knowledge/knowledgeView/index')
      },
      {
        path: 'knowledgeComment',
        name: 'dcom_knowledgeComment',
        meta: {
          title: '知识检索',
          icon: 'right-arrow',
          code: 'dcom_menu_knowledge_knowledgeComment'
        },
        component: () => import('@neu/dcom-ui/views/knowledge/knowledgeComment/index')
      }
    ]
  },
  {
    path: '/duty',
    name: 'duty',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '值班管理',
      icon: 'duty',
      module: 'dcom',
      code: 'dcom_menu_dcom_parent'
    },
    component: Layout,
    children: [
      {
        path: 'functionalgroups',
        name: 'dcom_functionalgroups',
        meta: {
          title: '职能管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_functionalgroups'
        },
        component: () => import('@neu/dcom-ui/views/functional/index')
      },
      {
        path: 'classes',
        name: 'dcom_classes',
        meta: {
          title: '班次管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_classes'
        },
        component: () => import('@neu/dcom-ui/views/classes/index')
      },
      {
        path: 'teamgroup',
        name: 'dcom_teamgroup',
        meta: {
          title: '班组管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_teamgroup'
        },
        component: () => import('@neu/dcom-ui/views/teamgroup/index')
      },
      {
        path: 'schedulingrule',
        name: 'dcom_schedulingrule',
        meta: {
          title: '值班规则管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_schedulingrule'
        },
        component: () => import('@neu/dcom-ui/views/schedulingrule/index')
      },
      {
        path: 'dutyArrangement',
        name: 'dcom_dutyArrangement',
        meta: {
          title: '值班安排',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_dutyArrangement'
        },
        component: () => import('@neu/dcom-ui/views/dutyArrangement/index')
      },
      {
        path: 'dutyCalender',
        name: 'dcom_dutyCalender',
        meta: {
          title: '值班日历',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_dutyCalender'
        },
        component: () => import('@neu/dcom-ui/views/calendar/dutyCalender/index')
      },
      {
        path: 'personalCalender',
        name: 'dcom_personalCalender',
        meta: {
          title: '我的日历',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_personalCalender'
        },
        component: () => import('@neu/dcom-ui/views/calendar/personalCalender/index')
      },
      {
        path: 'handover',
        name: 'dcom_handover',
        meta: {
          title: '交接班管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_handover'
        },
        component: () => import('@neu/dcom-ui/views/handover/index')
      },
      {
        path: 'shift',
        name: 'dcom_shift',
        meta: {
          title: '换班管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_shift'
        },
        component: () => import('@neu/dcom-ui/views/shift/index')
      },
      {
        path: 'holiday',
        name: 'dcom_holiday',
        meta: {
          title: '节假日管理',
          icon: 'right-arrow',
          code: 'dcom_menu_dcom_holiday'
        },
        component: () => import('@neu/dcom-ui/views/holiday/index')
      }
    ]
  },
  {
    path: '/setting',
    name: 'setting',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '配置管理',
      icon: 'settings',
      module: 'dcom',
      code: 'dcom_menu_setting_parent'
    },
    component: Layout,
    children: [
      {
        path: 'dictionaryType',
        name: 'dcom_dictionaryType',
        meta: {
          title: '字典类型',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_dictionaryType'
        },
        component: () => import('@neu/dcom-ui/views/dictionaryType')
      },
      {
        path: 'dictionary',
        name: 'dcom_dictionary',
        meta: {
          title: '字典管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_dictionary'
        },
        component: () => import('@neu/dcom-ui/views/dictionary')
      },
      {
        path: 'workflowForm',
        name: 'dcom_workflowForm',
        meta: {
          title: '表单管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_workflowForm'
        },
        component: () => import('@neu/dcom-ui/views/workOrder/definition')
      },
      {
        path: 'businessProcessType',
        name: 'dcom_businessProcessType',
        meta: {
          title: '流程模板',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_businessProcessType'
        },
        component: () => import('@neu/dcom-ui/views/process')
      },
      {
        path: 'bpmn',
        name: 'dcom_workflowEdit',
        hidden: true,
        meta: {
          title: 'BPMN',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_bpmn'
        },
        component: () => import('@neu/dcom-ui/views/workOrder/bpmn/edit.vue')
      },
      {
        path: 'priority',
        name: 'dcom_priority',
        meta: {
          title: '优先级管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_setting_priority'
        },
        component: () => import('@neu/dcom-ui/views/priority/index')
      }
    ]
  },
  {
    path: '/weekly',
    name: 'dcom_weekly',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '报工管理',
      icon: 'settings',
      module: 'dcom',
      code: 'dcom_menu_work_report'
    },
    component: Layout,
    children: [
      {
        path: 'institutions',
        name: 'dcom_institutions',
        meta: {
          title: '单位管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_institutions'
        },
        component: () => import('@neu/dcom-ui/views/institutions')
      },
      {
        path: 'operationGroup',
        name: 'dcom_operationGroup',
        meta: {
          title: '运维小组管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_operationGroup'
        },
        component: () => import('@neu/dcom-ui/views/operationGroup')
      },
      {
        path: 'workDaily',
        name: 'dcom_workDaily',
        meta: {
          title: '工作日志',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_workDaily'
        },
        component: () => import('@neu/dcom-ui/views/workDaily')
      },
      {
        path: 'operationSupportWeekly',
        name: 'dcom_operationSupportWeekly',
        meta: {
          title: '运维支撑服务周报',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_operationSupportWeekly'
        },
        component: () => import('@neu/dcom-ui/views/operationSupportWeekly')
      },
      {
        path: 'transferWeekly',
        name: 'dcom_transferWeekly',
        meta: {
          title: '移交服务周报',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_transferWeekly'
        },
        component: () => import('@neu/dcom-ui/views/transferWeekly')
      },
      {
        path: 'monthWeekly',
        name: 'dcom_monthWeekly',
        meta: {
          title: '月报',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_weekly_monthWeekly'
        },
        component: () => import('@neu/dcom-ui/views/monthWeekly')
      }
    ]
  },
  {
    path: '/workProcess',
    name: 'workProcess',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '工作流程',
      icon: 'plan',
      module: 'dcom',
      code: 'dcom_menu_workProcess'
    },
    component: Layout,
    children: [
      {
        path: 'malfunction',
        name: 'dcom_malfunction',
        meta: {
          title: '故障工单',
          icon: 'right-arrow',
          module: 'dcom',
          workOrderType: 'malfunction',
          workOrderRequest: 'me',
          code: 'dcom_menu_workProcess_malfunction'
        },
        component: () => import('@neu/dcom-ui/views/workOrder')
      },
      {
        path: 'workOrderManagement',
        name: 'dcom_workOrderManagement',
        meta: {
          title: '工单管理',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_workProcess_workOrderManagement_parent'
        },
        component: ParentView,
        redirect: 'noRedirect',
        alwaysShow: true,
        children: [
          {
            path: 'myWorkOrder',
            name: 'dcom_myWorkOrder',
            meta: {
              title: '我的工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'me',
              code: 'dcom_menu_workProcess_workOrderManagement_myWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          },
          {
            path: 'todoWorkOrder',
            name: 'dcom_todoWorkOrder',
            meta: {
              title: '待办工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'todo',
              code: 'dcom_menu_workProcess_workOrderManagement_todoWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          },
          {
            path: 'doneWorkOrder',
            name: 'dcom_doneWorkOrder',
            meta: {
              title: '已办工单',
              icon: 'right-arrow',
              module: 'dcom',
              workOrderRequest: 'done',
              code: 'dcom_menu_workProcess_workOrderManagement_doneWorkOrder'
            },
            component: () => import('@neu/dcom-ui/views/workOrder')
          }
        ]
      }
    ]
  },
  {
    path: '/hainanmess',
    name: 'hainanmess',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '其它业务',
      icon: 'settings',
      module: 'dcom',
      code: 'dcom_menu_mess_parent'
    },
    component: Layout,
    children: [
      {
        path: '/questionnaire',
        name: 'questionnaire',
        meta: {
          title: '任务下发',
          icon: 'workbench',
          affix: true,
          code: 'dcom_menu_mess_questionnaire'
        },
        component: () => import('@neu/dcom-ui/views/questionnaire')
      },
      {
        path: '/questionnairefeedback',
        name: 'questionnairefeedback',
        meta: {
          title: '总结报告',
          icon: 'workbench',
          affix: true,
          code: 'dcom_menu_mess_questionnairefeedback'
        },
        component: () => import('@neu/dcom-ui/views/questionnairefeedback')
      }
    ]
  },
  {
    path: '/hnInspection',
    name: 'hnInspection',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '巡检',
      icon: 'inspection',
      module: 'dcom',
      code: 'dcom_menu_inspection_parent_hn'
    },
    component: Layout,
    children: [
      {
        path: 'hnInspectionItem',
        name: 'dcom_hnInspectionItem',
        meta: {
          title: '巡检内容',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_inspection_inspectionItem_hn'
        },
        component: () => import('@neu/dcom-ui/views/hnInspection/inspectionItem/index')
      },
      {
        path: 'hnDayInspection',
        name: 'dcom_hnDayInspection',
        meta: {
          title: '日巡检',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcam_menu_hnDayInspection_parent'
        },
        component: ParentView,
        redirect: 'noRedirect',
        alwaysShow: true,
        children: [
          {
            path: 'hnInspectionPlan',
            name: 'dcom_hnInspectionPlan',
            meta: {
              title: '巡检计划',
              module: 'dcom',
              icon: 'right-arrow',
              code: 'dcom_menu_inspection_inspectionPlan_hn'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionPlan/index')
          },
          {
            path: 'hnInspectionTask',
            name: 'dcom_hnInspectionTask',
            meta: {
              title: '巡检任务',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'dcom_menu_inspection_inspectionTask_hn'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionTask/index')
          }
        ]
      },
      {
        path: 'hnHealthInspection',
        name: 'dcom_hnHealthInspection',
        meta: {
          title: '定期健康巡检',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcam_menu_hnHealthInspection_parent'
        },
        component: ParentView,
        redirect: 'noRedirect',
        alwaysShow: true,
        children: [
          {
            path: 'hnHealthInspectionPlan',
            name: 'dcom_HealthhnInspectionPlan',
            meta: {
              title: '巡检计划',
              module: 'dcom',
              icon: 'right-arrow',
              code: 'dcom_menu_health_inspection_inspectionPlan_hn'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionPlanHealth/index')
          },
          {
            path: 'hnHealthInspectionTask',
            name: 'dcom_hnHealthInspectionTask',
            meta: {
              title: '巡检任务',
              icon: 'right-arrow',
              module: 'dcom',
              code: 'dcom_menu_health_inspection_inspectionTask_hn'
            },
            component: () => import('@neu/dcom-ui/views/hnInspection/inspectionTaskHealth/index')
          }
        ]
      }
    ]
  },
  // {
  //   path: '/hnInspection',
  //   name: 'hnInspection',
  //   redirect: 'noRedirect',
  //   alwaysShow: true,
  //   meta: {
  //     title: '巡检',
  //     icon: 'inspection',
  //     module: 'dcom',
  //     code: 'dcom_menu_inspection_parent_hn'
  //   },
  //   component: Layout,
  //   children: [
  //     {
  //       path: 'hnInspectionItem',
  //       name: 'dcom_hnInspectionItem',
  //       meta: {
  //         title: '巡检内容',
  //         icon: 'right-arrow',
  //         code: 'dcom_menu_inspection_inspectionItem_hn'
  //       },
  //       component: () => import('@neu/dcom-ui/views/hnInspection/inspectionItem/index')
  //     },
  //     {
  //       path: 'hnInspectionPlan',
  //       name: 'dcom_hnInspectionPlan',
  //       meta: {
  //         title: '巡检计划',
  //         icon: 'right-arrow',
  //         code: 'dcom_menu_inspection_inspectionPlan_hn'
  //       },
  //       component: () => import('@neu/dcom-ui/views/hnInspection/inspectionPlan/index')
  //     },
  //     {
  //       path: 'hnInspectionTask',
  //       name: 'dcom_hnInspectionTask',
  //       meta: {
  //         title: '巡检任务',
  //         icon: 'right-arrow',
  //         code: 'dcom_menu_inspection_inspectionTask_hn'
  //       },
  //       component: () => import('@neu/dcom-ui/views/hnInspection/inspectionTask/index')
  //     }
  //   ]
  // },
  {
    path: '/insurance',
    name: 'dcom_insurance',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '重保服务',
      icon: 'settings',
      module: 'dcom',
      code: 'dcom_menu_insurance'
    },
    component: Layout,
    children: [
      {
        path: 'register',
        name: 'dcom_register',
        meta: {
          title: '服务登记',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_insurance_register'
        },
        component: () => import('@neu/dcom-ui/views/insurance/register')
      },
      {
        path: 'registerTask',
        name: 'dcom_register_task',
        meta: {
          title: '重保任务',
          icon: 'right-arrow',
          module: 'dcom',
          code: 'dcom_menu_insurance_register_task'
        },
        component: () => import('@neu/dcom-ui/views/insurance/registerTask')
      }
    ]
  }
]
